package com.example.hospital.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.List;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "Role对象",description = "")
@TableName("t_patient")
public class Patient {
    @ApiModelProperty(value = "rid")
    @TableId(value = "pid", type = IdType.AUTO)
    private Integer id;
    @ApiModelProperty(value = "名字")
    private String name;
    @ApiModelProperty(value = "手机")
    private String phone;
    @ApiModelProperty(value = "身份证")
    private String idcard;
    @ApiModelProperty(value = "业务属性")
    @TableField(exist = false)
    private List<Operation> operation;
    @ApiModelProperty(value = "症状")
    @TableField(exist = false)
    private List<Symptom> symptom;
    @ApiModelProperty(value = "基本信息")
    @TableField(exist = false)
    private List<Basic> basic;

}
